# Doclib Managed Navigation
Configures managed (term store) navigation on a document library by processing rows from an Excel file. The navigation settings are taken from the ManagedNavigation property of the named DocLibCfg template in config.json.
Filename pattern: filename must contain DoclibManagedNavigation (case-insensitive).
Example: 20240115 DoclibManagedNavigation setup.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url | Conditional | Server-relative URL of the target document library. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve document libraries from the matter list. Required when Url is not provided. Applies to all document libraries for the matter. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
| DoclibSet / Doclib / Set | Yes | Name of the DocLibCfg template in config.json whose ManagedNavigation settings define the navigation to apply. |
| ActivateFeature / EnableFeature | No | Boolean. When true, activates the required SharePoint feature (ID 7201d6a4-a5d3-49a1-8c19-19c4bac6e668) before applying navigation. Only needed if the feature is not already active. Defaults to false. |
Either Url or MatterCode must be provided. DoclibSet is always required.
# Behavior
Applies the ManagedNavigation settings from the named DocLibCfg template to the resolved library. When ActivateFeature is true, the required SharePoint managed navigation feature is activated on the site collection before applying navigation settings.
# Related links
DocLibCfg— defines the library templates and their navigation configuration- Doclib Set handler — apply full document library configuration